<%@ page language="java"  pageEncoding="utf-8"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>编辑留言</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<script type="text/javascript" src="/guestbook5/ckeditor/ckeditor.js"></script>

  </head>
  
  <body>&nbsp; 
    <h2>编辑留言内容</h2>
    <form name="form" method="post" class="required-validate" action="">
   <input type="hidden" name="id"  value="${guestbook.id }">
   <input type="hidden" name="createdtime"  value="${guestbook.createdtime }">
    <table width="642" height="284" border="0" cellpadding="0" cellspacing="5">
      <tr>
        <td>姓名</td>
        <td><label>
          <input name="name" class="required" type="text" size="40" value="${guestbook.name }" />
        </label></td>
      </tr>
      <tr>
        <td>email</td>
        <td><label>
          <input name="email" class="validate-email" type="text"  size="40" value="${guestbook.email }" />
        </label></td>
      </tr>
      <tr>
        <td>手机</td>
        <td><label>
          <input name="phone" class="validate-mobile-phone" type="text" size="40" value="${guestbook.phone }" />
        </label></td>
      </tr>
      <tr>
        <td>标题</td>
        <td><label>
          <input name="title" class="required" type="text" size="40" value="${guestbook.title }" />
        </label></td>
      </tr>
      <tr>
        <td valign="top">内容</td>
        <td><label>
          <textarea name="content" id="context" class="ckeditor">${guestbook.content }</textarea>
        </label></td>
      </tr>
	  <tr>
        <td colspan="2" align="center"><label>
          <input type="submit" name="Submit" value="提交" onClick="return checkform()">
        </label> </td>
      </tr>
    </table>
  </form>
  </body>
</html>
